#ifndef USERLIST_H
#define USERLIST_H

#include <QObject>
#include <QMap>
#include <QVector>
#include <QStringList>
#include "user.h"
class UserList : public QObject
{
    Q_OBJECT
public:
    enum UserType {All, Disabled, Enabled};
    explicit UserList(QObject *parent = 0);
    void addUser(User* user);
    User* user(const int&Index);
    QList<User*> users(const UserType&userType);
    QStringList units() const;
    QVector<int> uidsByUnit(const QString&unit);
private:
    QMap<int, User*> m_usersList;
    QMap<QString,QVector<int> > m_units;
signals:

public slots:

};

#endif // USERLIST_H
